package entitys;

import java.io.Serializable;

public class Area implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	int areaid;
	String areaName;
	
	/** 
	 * Constructor for the Area object
	 * @param areaName
	 * @param areaid
	 */
	public Area(String areaName, int areaid)
	{
		this.areaid = areaid;
		this.areaName = areaName;
	}

	/** 
	 * Constructor for the Area object
	 * @param areaName
	 */
	public Area(String areaName) {
		// TODO Auto-generated constructor stub
		this.areaid = 0;
		this.areaName = areaName;
	}

	/** 
	 * function returns areaid
	 * @return areaid
	 */
	public int getAreaid() {
		return areaid;
	}

	/**
	 * function sets area id with the parameter
	 * @param areaid
	 */
	public void setAreaid(int areaid) {
		this.areaid = areaid;
	}

	/**
	 * function returns area name 
	 * @return areaName
	 */
	public String getAreaName() {
		return areaName;
	}

	/** 
	 * function sets area name with the parameter 
	 * @param areaName
	 */
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	/**
	 *  function returns string format of the object
	 */
	@Override
	public String toString() {
		return "#"+areaid+" "+areaName;
	}

}
